package cn.ad.exception;

public class AdSpaceValidateException extends ValidateException{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{
		ADSPACE_CHANGE_FAIL(20701,"AdSpace status change failed"),
		ADSPACE_DELETE_FAIL(20702,"AdSpace has been used,can't be delete!"),
		ADSPACE_NAME_REPEAT(20703,"AdSpace name repeat");
		private int value;

		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}

	public AdSpaceValidateException(BaseErrorCode code) {
		super(code);
	}

	public AdSpaceValidateException() {
		super();
	}

	public AdSpaceValidateException(String message, Throwable cause, boolean enableSuppression,
                                    boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public AdSpaceValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public AdSpaceValidateException(String message) {
		super(message);
	}

	public AdSpaceValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
